package com.example.test2018131462.mapper;

import com.example.test2018131462.bean.UserBean;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author Sakura
 */

@Mapper
public interface UserMapper {

    UserBean getInfo(String name, String password);

    List<UserBean> getAllUser();

    int insertUser(UserBean userBean);

    int deleteUser(String id);

    UserBean getUserById(String id);

    int updateUser(UserBean userBean);

    List<UserBean> selectUser4Page();

}
